<template>
  <ul class="todo-main">
    <item v-for="todo in todos" :key="todo.id" :todo="todo"></item>

  </ul>
</template>

<script lang="ts">
import { defineComponent } from "@vue/runtime-core";
import Item from "./Item.vue";

export default defineComponent({
  components: { Item },
  name:"List",
  props: ['todos'],
  
  setup(props, ctx) {
     return {
     }
  },
})
</script>

<style>
.todo-main{
    margin-left: 0px;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 0px;
}
.todo-empy{
    height: 40px;
    line-height: 40px;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding-left: 5px;
    margin-top: 10px;
}
</style>